.class Ldgb/d$a;
.super Landroid/content/BroadcastReceiver;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Ldgb/d;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Ldgb/d;


# direct methods
.method constructor <init>(Ldgb/d;)V
    .locals 0

    .line 1
    iput-object p1, p0, Ldgb/d$a;->a:Ldgb/d;

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 2

    .line 1
    iget-object p2, p0, Ldgb/d$a;->a:Ldgb/d;

    invoke-static {p2}, Ldgb/d;->a(Ldgb/d;)Landroid/content/Context;

    move-result-object p2

    const-string v0, "connectivity"

    .line 2
    invoke-virtual {p2, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Landroid/net/ConnectivityManager;

    .line 3
    :try_start_0
    invoke-virtual {p2}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;

    move-result-object p2
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    const/4 p2, 0x0

    :goto_0
    if-eqz p2, :cond_3

    .line 4
    invoke-virtual {p2}, Landroid/net/NetworkInfo;->isConnectedOrConnecting()Z

    move-result v0

    if-eqz v0, :cond_3

    .line 5
    iget-object v0, p0, Ldgb/d$a;->a:Ldgb/d;

    invoke-static {v0}, Ldgb/d;->a(Ldgb/d;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Ldgb/p4;->a(Landroid/content/Context;)Ldgb/p4;

    move-result-object v0

    invoke-virtual {v0}, Ldgb/p4;->a()V

    .line 6
    invoke-virtual {p2}, Landroid/net/NetworkInfo;->getType()I

    move-result v0

    const-string v1, "stat.ConnectivityChangeListener"

    if-nez v0, :cond_1

    .line 7
    sget-boolean p2, Ldgb/z;->c:Z

    if-eqz p2, :cond_0

    const-string p2, "Mobile data connection!"

    .line 8
    invoke-static {v1, p2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 9
    :cond_0
    invoke-static {p1}, Ldgb/o;->a(Landroid/content/Context;)Z

    move-result p2

    if-eqz p2, :cond_4

    .line 10
    invoke-static {p1}, Ldgb/n4;->a(Landroid/content/Context;)Ldgb/n4;

    move-result-object p1

    const/4 p2, 0x5

    invoke-virtual {p1, p2}, Ldgb/n4;->a(I)Z

    goto :goto_1

    .line 11
    :cond_1
    invoke-virtual {p2}, Landroid/net/NetworkInfo;->getType()I

    move-result p2

    const/4 v0, 0x1

    if-ne p2, v0, :cond_4

    .line 12
    sget-boolean p2, Ldgb/z;->c:Z

    if-eqz p2, :cond_2

    const-string p2, "Wifi data connection!"

    .line 13
    invoke-static {v1, p2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 14
    :cond_2
    invoke-static {p1}, Ldgb/o;->a(Landroid/content/Context;)Z

    move-result p2

    if-eqz p2, :cond_4

    .line 15
    invoke-static {p1}, Ldgb/n4;->a(Landroid/content/Context;)Ldgb/n4;

    move-result-object p1

    const/4 p2, 0x4

    invoke-virtual {p1, p2}, Ldgb/n4;->a(I)Z

    goto :goto_1

    .line 16
    :cond_3
    iget-object p1, p0, Ldgb/d$a;->a:Ldgb/d;

    invoke-static {p1}, Ldgb/d;->a(Ldgb/d;)Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Ldgb/p4;->a(Landroid/content/Context;)Ldgb/p4;

    move-result-object p1

    invoke-virtual {p1}, Ldgb/p4;->b()V

    :cond_4
    :goto_1
    return-void
.end method
